package com.one.mapper;

import com.one.dto.SelectBatch;
import com.one.entity.ElectiveInfoEntity;
import com.one.entity.EvaluateResultDetailEntity;
import com.one.entity.SemesterInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.one.entity.SysCollegeEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 批次表 Mapper 接口
 * </p>
 *
 * @author zwj
 * @since 2021-10-08
 */
@Mapper
public interface SemesterInfoMapper extends BaseMapper<SemesterInfoEntity> {

    int insertBatch(SelectBatch semesterInfoEntity);

    SemesterInfoEntity selectBatchByCodeAndName(SemesterInfoEntity semesterInfoEntity);
    SelectBatch selectBatchByCodeAndName(SelectBatch semesterInfoEntity);

    List<Object> selectBatch(SemesterInfoEntity semesterInfoEntity);

    int updateBatch(SelectBatch semesterInfoEntity);

    int deleteBatch(SemesterInfoEntity semesterInfoEntity);

    int updateBatchStatus(SemesterInfoEntity semesterInfoEntity);

    ElectiveInfoEntity selectInfo(Integer id);

    EvaluateResultDetailEntity selectInfoBy(EvaluateResultDetailEntity detailEntity);

    int insertinfo(EvaluateResultDetailEntity detailEntity);
}
